// 中央计时器
library CenterTimer initializer init requires MonsterVo, SimulateAttac2, SimulateAttac5, SimulateAttac6


    // 每秒执行一次
    private function onSecond takes nothing returns nothing
        // 飞剑术每秒执行计时器
        call fly_Every_Second()
    endfunction

    // 每0.5秒执行一次
    private function on05Second takes nothing returns nothing
        // 闪电链持续伤害
        call sdl_Every_05Second()
    endfunction

    // 每0.3秒执行一次
    private function on03Second takes nothing returns nothing
        // 冻伤
        call hbj_Every_03Second()
    endfunction

    private function init takes nothing returns nothing
        local timer t = CreateTimer()
        call TimerStart(t, 1.0, true, function onSecond)
        set t = null

        set t = CreateTimer()
        call TimerStart(t, 0.5, true, function on05Second)
        set t = null

        set t = CreateTimer()
        call TimerStart(t, 0.3, true, function on03Second)
        set t = null
    endfunction
endlibrary
